﻿public class PC {
    CPU cpu;
    HardDisk  HD;
    //PC(CPU cpu) {
  //      this.cpu=cpu;
  //  }
  //  PC(HardDisk HD) {
 //       this.HD=HD;
  //  }
    void setCpu(CPU c) {
        cpu=c;
    }
    void setHardDisk(HardDisk h) {
        HD=h;
    }
    void show() {
        System.out.println("CPU:"+cpu.getSpeed());
        System.out.println("HD:"+HD.getAmount());
    }
}

